﻿using MhAdmin.System.Entity.CMD;

namespace MhAdmin.Application.Services.CMD.MasterDataGroup.Dto
{

	/// <summary>
	/// 主数据群组新增参数
	/// </summary>
	public class MasterDataGroupAddInput : SysMasterDataGroup
	{
		/// <summary>
		/// 名称
		/// </summary>
		[Required(ErrorMessage = "Name不能为空")]
		public override string Name { get; set; }

		/// <summary>
		/// 类型
		/// </summary>
		[Required(ErrorMessage = "Type不能为空")]
		public override string Type { get; set; }

		/// <summary>
		/// 默认工艺路线
		/// </summary>
		[Required(ErrorMessage = "Processroute不能为空")]
		public override string Processroute { get; set; }
	}

	/// <summary>
	/// 主数据群组分页查询条件
	/// </summary>
	public class MasterDataGroupPageInput : BasePageInput
	{
		/// <summary>
		/// 备  注:编码
		/// 默认值:
		///</summary>
		[SugarColumn(ColumnName = "Code", ColumnDescription = "编码")]
		public string Code { get; set; }

		/// <summary>
		/// 备  注:类型
		/// 默认值:
		///</summary>
		[SugarColumn(ColumnName = "Type", ColumnDescription = "类型")]
		public PartGroupType? Type { get; set; }
	}

	/// <summary>
	/// 主数据群组编辑参数
	/// </summary>
	public class MasterDataGroupEditInput : MasterDataGroupAddInput
	{
		/// <summary>
		/// Id
		/// </summary>
		[IdNotNull(ErrorMessage = "Id不能为空")]
		public override long Id { get; set; }
	}
}
